package com.lagou.sqlSesssion;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    public <E> List<E> selectList(String statementId,Object... params) throws Exception;

    public <T> T selectOne(String statementId,Object... params) throws Exception;

    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass) throws Exception;

    public Integer update(String statementId,Object... params) throws Exception;

    public Integer delete(String statementId,Object... params) throws Exception;

    public Integer insert(String statementId,Object... params) throws Exception;
}
